package com.cms.recursoshumanos.handler;

import com.cms.recursoshumanos.cache.UserInfoCache;
import com.cms.recursoshumanos.facade.ListaEstudioScreenFacade;

public class ListaEstudioScreenHandler extends BaseHandler

{
	public ListaEstudioScreenHandler()
	{
		
	}
	public void facadeListaEstudioScreen(String username, String password)
	{
		ListaEstudioScreenFacade lista_estudio_facade = new ListaEstudioScreenFacade(username,
																						password);
		
		lista_estudio_facade.getListaEstudio();
		//lista_estudio_facade.run_facade(lista_estudio_facade);
	}
	public void refreshListaEstudio (String username, String password)
	{
		this.facadeListaEstudioScreen(username, password);
	}
	public void getListaEstudio (String username, String password)
	{
		if ( (!(UserInfoCache.getInstance().cache_utilizable(3)))
				|| UserInfoCache.getInstance().lista_vacia(3))
		{
			this.facadeListaEstudioScreen(username, password);
		}
		else
		{
			this.goListaEstudio();
		}
			
	}
	public void refreshListaEstudioScreen(String username, String password)
	{
		this.facadeListaEstudioScreen(username, password);
	}
	
}

